import request from '@/utils/request'

export function add(data) {
  return request({
    url: '/docu-filter',
    method: 'post',
    data
  })
}

// 分页
export function page(id, data) {
  return request({
    url: '/docu-filter/' + id,
    method: 'post',
    data
  })
}

// 全部
export function query(id) {
  return request({
    url: '/docu-filter/' + id,
    method: 'get'
  })
}

export function deleteById(id) {
  return request({
    url: '/docu-filter/delete/' + id,
    method: 'get'
  })
}
